import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;


public class Zebre {
	PropertyChangeSupport pcs = new PropertyChangeSupport(this);
	private String name;
	private int ziua;
	private int ora;
	private int min;
	private int sec;
	private int stare1;
	
	public Zebre(String name, int ziua, int ora, int min, int sec, int stare1) {
		super();
		this.name = name;
		this.ziua = ziua;
		this.ora = ora;
		this.min = min;
		this.sec = sec;
		this.stare1 = stare1;
	}
	public int getZiua() {
		return ziua;
	}
	
	public void setZiua(int ziua) {
		int temp = ziua;
		this.ziua = ziua;
		pcs.firePropertyChange("ziua", temp, ziua);
	}
	
	public int getOra() {
		return ora;
	}
	
	public void setOra(int ora) {
		int temp = ora;
		this.ora = ora;
		pcs.firePropertyChange("ora", temp, ora);

	}
	
	public int getMin() {
		return min;
	}
	
	public void setMin(int min) {
		int temp = min;
		this.min = min;
		pcs.firePropertyChange("min", temp, min);

	}
	
	public int getSec() {
		return sec;
	}
	
	public void setSec(int sec) {
		int temp = sec;
		this.sec = sec;
		pcs.firePropertyChange("sec", temp, sec);

	}
	
	public int getStare1() {
		return stare1;
	}
	
	public void setStare1(int stare1) {
		int temp = stare1;
		this.stare1 = stare1;
		pcs.firePropertyChange("stare1", temp, stare1);

	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		String temp = name;
		this.name = name;
		pcs.firePropertyChange("name", temp, name);

	}
	
	public void addPropertyChangeListener(PropertyChangeListener pcl) {
        pcs.addPropertyChangeListener(pcl);
    }
    public void removePropertyChangeListener(PropertyChangeListener pcl) {
        pcs.removePropertyChangeListener(pcl);
    }
}
